//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Copyright 2007 CORE Solutions Limited
// All rights reserved.
// PROPRIETARY AND CONFIDENTIAL INFORMATION.
// Use is subject to license terms.
//
// FUNCTION ID      :   CATALOG_DTL_TEMPLATE
// AUTHOR           :   Craig Chun
// DATE CREATE      :   2007/07/20
// DESCRIPTION      :   a ROW file for the function, CATALOG_DTL_TEMPLATE
//                  :
//                  :
//                  :
//
// MODIFICATION HISTORY:
// DATE         AUTHOR          VERSION NO.         COMMENT
// -----------  --------------  ------------------  -------------------
// 2007/07/20   Craig Chun      1.0                 source is generated.
//
//
//
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

package com.erp.app.setup.itemDetailTemplate.web;

import com.erp.framework.controller.form.MultiRowTemplate;
import com.erp.framework.util.CommonUtil;
import com.erp.framework.types.*;
import com.erp.app.setup.itemDetailTemplate.pk.*;

/**
* <p>A <strong>Row</strong> is a JavaBean which provides property
* getter and setter methods for all of the bean properties, and implements
* <code>Serializable</code>, as required by the JavaBean specification
* The main purpose for this bean is to store the detail childs.
*
* @author          Craig Chun
* @version 1.0     2007/07/20
* @since           FrameWork 1.0
*
*/
public class CatalogDtlTemplateRow extends MultiRowTemplate {

	//DB Table Name: T_CATALOG_DTL_TEMPLATE

	//PK Attributes
	private String companyCode = "";                                                                   //DB Column Name: COMPANY_CODE
	private String nodeId = "";                                                                        //DB Column Name: NODE_ID
	private String dtlId = "";                                                                         //DB Column Name: DTL_ID

	//Other Attributes
	private String hdrSeq = "";                                                                        //DB Column Name: SEQ
	private String hdrStatus = "";                                                                     //DB Column Name: STATUS
	private String hdrBrowserColumn = "";                                                              //DB Column Name: BROWSER_COLUMN

	private String itemDetailType="";
	private String itemDetailName="";

	/**
	* Converts to a string representing the data in this object.
	* A new <code>String</code> object is allocated and initialized to
	* contain the character sequence currently represented by this
	* object. This <code>String</code> is then returned. Subsequent
	* changes to this object do not affect the contents of the
	* <code>String</code>.
	*
	* @return     a string representation of the object.
	* @see        java.lang.Object#toString()
	* @author     Craig Chun
	* @since      Framework 1.0
	*/
	public String toString() {
		String pkStr = "PK: {companyCode = " + this.companyCode
			+ "\n, nodeId = " + this.nodeId
			+ "\n, dtlId = " + this.dtlId + "}\n";
		String colStr = "COL: {hdrSeq = " + this.hdrSeq
			+ "\n, hdrStatus = " + this.hdrStatus
			+ "\n, hdrBrowserColumn = " + this.hdrBrowserColumn + "}\n";
		return "CatalogDtlTemplateRow.toString() is:\n" + pkStr + colStr;
	}

	////////////////////////////////////////////////////////////////////////////////
	//Generated Accessors (get/set methods)
	////////////////////////////////////////////////////////////////////////////////

	public String getCompanyCode() {
		return this.companyCode;
	}

	public String getNodeId() {
		return this.nodeId;
	}

	public String getDtlId() {
		return this.dtlId;
	}

	public String getHdrSeq() {
		return this.hdrSeq;
	}

	public String getHdrStatus() {
		return this.hdrStatus;
	}

	public String getHdrBrowserColumn() {
		return this.hdrBrowserColumn;
	}

	public void setCompanyCode(String companyCode) {
		this.companyCode = CommonUtil.toCode(companyCode);
	}

	public void setNodeId(String nodeId) {
		this.nodeId = CommonUtil.toCode(nodeId);
	}

	public void setDtlId(String dtlId) {
		this.dtlId = CommonUtil.toCode(dtlId);
	}

	public void setHdrSeq(String hdrSeq) {
		this.hdrSeq = CommonUtil.trim(hdrSeq);
	}

	public void setHdrStatus(String hdrStatus) {
		this.hdrStatus = CommonUtil.trim(hdrStatus);
	}

	public void setHdrBrowserColumn(String hdrBrowserColumn) {
		this.hdrBrowserColumn = CommonUtil.trim(hdrBrowserColumn);
	}

	////////////////////////////////////////////////////////////////////////////////
	//Other Accessors (get/set methods)
	////////////////////////////////////////////////////////////////////////////////


	public CatalogDtlTemplatePk getPk() {
		return new CatalogDtlTemplatePk(String.valueOf(this.getCompanyCode()), CustomBigInteger.customize(this.getNodeId()), CustomBigInteger.customize(this.getDtlId()));
	}

	public String getItemDetailName() {
		return itemDetailName;
	}

	public void setItemDetailName(String itemDetailName) {
		this.itemDetailName = itemDetailName;
	}

	public String getItemDetailType() {
		return itemDetailType;
	}

	public void setItemDetailType(String itemDetailType) {
		this.itemDetailType = itemDetailType;
	}
}
